#define _CRT_SECURE_NO_WARNINGS
#include "seqlist.h"
void test1() {
	SeqList s;
	SeqListInit(&s);
	SeqListPushBack(&s, 2);
	SeqListPushFront(&s, 1);
	SeqListPrint(&s);
	SeqListDestroy(&s);
}
void test2() {
	SeqList s;
	SeqListInit(&s);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPrint(&s);
	SeqListPopBack(&s);
	SeqListPopFront(&s);
	SeqListPrint(&s);
}

int test3() {
	SeqList s;
	SeqListInit(&s);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPrint(&s);
	int n=SeqListFind(&s,2);
	SeqListInsert(&s, 1, 7);
	SeqListPrint(&s);
	SeqListErase(&s, 1);
	SeqListPrint(&s);

	return n;
}

int main() {
	//test1();
	//test2();
	int ret = test3();
	printf("%d", ret);

	return 0;
}